import React from "react";
import ReactDOM from "react-dom/client";
import "./index.scss";
import reportWebVitals from "./reportWebVitals";
import { RouterProvider } from "react-router-dom";
import router from "./router";
import App from "./App";
import { Provider } from "react-redux";
// import store from "./store";
import { PersistGate } from "redux-persist/integration/react";
import { store, persistor } from "./store";
import { ConfigProvider } from "antd";
import zhCN from "antd/es/locale/zh_CN";
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
  <ConfigProvider locale={zhCN}>
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
      <App />
    </PersistGate>
    </Provider>
  </ConfigProvider>
);

reportWebVitals();
